<?php

use frontend\assets\AppAsset;

AppAsset::register($this);//这两行放到最上面的php里

?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 

">
<html xmlns="http://www.w3.org/1999/xhtml 

">


<?php $this->beginPage() ?>


 <head>



 <?php $this->head() ?>


  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <link type="text/css" rel="stylesheet" href="myweb/css/frontmodule.css" />
  <link type="text/css" rel="stylesheet" href="myweb/css/5_themes_default_style.css?v=0.0.0.9" front="css" />
  <link type="text/css" rel="stylesheet" href="myweb/css/5_themes_default_flexslider.css?v=0.0.0.9" front="css" />
  <link type="text/css" rel="stylesheet" href="myweb/css/5_themes_default_jqueryuicore.css?v=0.0.0.9" front="css" />
  <link type="text/css" rel="stylesheet" href="myweb/css/5_themes_default_jqueryuiselectmenu.css?v=0.0.0.9" front="css" />
  <link type="text/css" rel="stylesheet" href="myweb/css/5_themes_default_jqueryuitheme.css?v=0.0.0.9" front="css" />

  <!--引用静态文件:skin_default-->
  <!-- <link href="myweb/css/common.css" rel="stylesheet" type="text/css" />
  <link href="myweb/css/templateform.css" rel="stylesheet" type="text/css" />
  <link href="myweb/css/controls.css" rel="stylesheet" type="text/css" />
  <link href="myweb/css/default.css" rel="stylesheet" type="text/css" />

  <link href="myweb/css/school-select-v2.css" rel="stylesheet" type="text/css" /> -->
  <!--引用静态文件:skin_new_css-->
  <link href="myweb/css/main.css" rel="stylesheet" type="text/css" />
  <!--引用静态文件:new_dialog_js-->


  <title>首页</title>
 </head>
 <body>

 <?php $this->beginBody() ?>


  <div class="header">
   <div class="headercontain">
    <div class="logo">
     <img src="myweb/images/104003_medias_20141215_20141215logo.jpg?v=635542641034400000" />
    </div>
    <!--module:login begin-->
    <div class="bs-module">
     <div class="login-link ">
      <div class="login-hearder"> 
      <?php $cookie = \Yii::$app->request->cookies;
      $cookie_data=$cookie->getValue('user');
      //var_dump($cookie_data);die;
      if($cookie->has('user')) { ?>
       <ul class="header-login">
        <li><span><span class="userName" style="float:none"></span>欢迎<?php echo $cookie_data[0]?>登录</span></li> 
        <li class="PortalIndex"><a href="?r=member/member_apply"><span>个人中心</span></a></li> 
        <li class="LogoutUrl"><a href="?r=login/loginout"><span>退出</span></a></li> 
       </ul> 
       <?php }else{ ?>
       <ul class="header-unLogin"> 
        <li><a class="loginlink" href="?r=login/login"> <span>登录</span> </a></li> 
        <li><a class="reglink" href="?r=login/signup"><span> 注册</span></a></li> 
       </ul>
      <?php } ?>
      </div> 
     </div>
    </div>
    <!--module:login end-->
    <!--module:internalrecommend begin-->
    <div class="bs-module"> 
     <div class="internalrecommend-default "> 
      <div class="internaldiv"> 
       <a class="internal" href="http://neitui.zhiye.com/51talk" target="_blank">内部推荐专区</a> 
      </div> 
     </div> 
    </div>
    <!--module:internalrecommend end-->
   </div>
  </div>

<?php echo $content;?>




  <div class="footer">
   <span> &copy;2015&nbsp;&nbsp;51talk&nbsp;&nbsp;京ICP备05051632号 京公网安备110108002767号 &nbsp;Powered by&nbsp;<a href="http://www.beisen.com 

" class="footerlogo" target="_blank"></a> </span>
  </div>
  <script type="text/javascript">
        require([
            vstr('${st}/${version}/cmsportal/skin/js/baiduStatistics.js')

        ]);
    </script>
  <script type="text/javascript">
    $(function(){
    _splash('zhiye_home',0,104003,'new.zhiye.com ');
    });
    </script>
 </body>


    <?php $this->endBody() ?>


</html>
<?php $this->endPage() ?>